import Vue from "vue";
import Vuex from "vuex";
import home from './modules/home'
import search from './modules/search'
import detail from './modules/detail'
import user from './modules/user'


// 注册插件
Vue.use(Vuex)

Vue.config.productionTip = false
// 创建爱你store实例对象
const store = new Vuex.Store({
  modules: {
    home,
    search,
    detail,
    user
  }
})



// 暴露store对象
export default store